package ynu.elm.service.impl;

import org.springframework.stereotype.Service;
import ynu.elm.entity.Category;
import ynu.elm.mapper.ICategoryMapper;
import ynu.elm.service.CategoryService;
import jakarta.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private ICategoryMapper categoryMapper;

    @Override
    public List<Category> listCategories() {
        return categoryMapper.listCategories();
    }
}